package TestsDesignPatternFactory;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import DesignPatternFactory.Produit;
import DesignPatternFactory.Software;

public class TestSoftware {
	

	protected Produit s ; 
	private static final double delta = 1e-15;

	@Before
	public void setUp() {
		s = new Software("Linux Slackware v 1.0", "1993", 0) ;
	}

	@Test
	public void testGetDenomination()
	{
		assertSame(("Linux Slackware v 1.0"), s.getDenomination());
	}

	@Test
	public void testGetPrix()
	{
		assertEquals(0.0, s.getPrix(), delta);
		
	}

	@Test
	public void testGetAnneeCreation()
	{
		assertSame(("1993"), s.getAnneeCreation());
	}
	

}
